﻿

namespace Huirui.Cavan.Presentation.Seedwork
{
    using System;
    using System.Collections.Generic;
    using System.Diagnostics.Contracts;
    using System.Linq;
    using System.Web.Mvc;
    using Huirui.Cavan.Core.Message;

    /// <summary>
    ///     Fundamental marker for Controller with ICoreModel (with Messages)
    /// </summary>
    public interface ICoreController<out TModel> : IMessagesReporter, IController
        where TModel : class, ICoreModel
    {
        /// <summary>
        ///     Gets the model. Setter allows the DI
        /// </summary>
        /// <value>The model.</value>
        TModel Model { get;}

        ControllerContext ControllerContext { get; }
    }
}